import request from '@/utils/request'

// 查询生产过程记录列表
export function listRptrecord(query) {
  return request({
    url: '/productionProcess/stow/list',
    method: 'get',
    params: query
  })
}

// 查询生产过程记录详细
export function getRptrecord(id) {
  return request({
    url: '/productionProcess/stow/' + id,
    method: 'get'
  })
}

// 新增生产过程记录
export function addRptrecord(data) {
  return request({
    url: '/productionProcess/stow',
    method: 'post',
    data: data
  })
}

// 修改生产过程记录
export function updateRptrecord(data) {
  return request({
    url: '/productionProcess/stow',
    method: 'put',
    data: data
  })
}
export function checkRptrecord(data) {
  return request({
    url: '/productionProcess/stow/check',
    method: 'put',
    data: data
  })
}
// 删除生产过程记录
export function delRptrecord(id) {
  return request({
    url: '/productionProcess/stow/' + id,
    method: 'delete'
  })
}


// 读取数据
export function handleDate(query) {
  return request({
    url: '/Productionline/interfaceReport/getMDJ',
    method: 'get',
    params: query
  })
}
